package com.xl.literal;

public class LiteralDemo {
    public static void main(String[] args) {
        //整数
        System.out.println(666);
        //小数
        System.out.println(66.6);
        //字符
        System.out.println('x');
        System.out.println('y');
        //System.out.println('zz'); 两个字符不行
        System.out.println(' '); //空字符
        //System.out.println('');
        //特色字符
        System.out.println('小');
        System.out.println('\n');
        System.out.println('写');
        System.out.println('\n');
        //字符串
        System.out.println("xiaoxie"); //双引号
        //布尔值
        System.out.println(true);
        System.out.println(false);
    }
}
